package com.li.hibernate.pojo;

/**
 * AbstractShOrderId entity provides the base persistence definition of the
 * ShOrderId entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractShOrderId implements java.io.Serializable {

	// Fields

	private ShUser shUser;
	private Integer orduserid;

	// Constructors

	/** default constructor */
	public AbstractShOrderId() {
	}

	/** full constructor */
	public AbstractShOrderId(ShUser shUser, Integer orduserid) {
		this.shUser = shUser;
		this.orduserid = orduserid;
	}

	// Property accessors

	public ShUser getShUser() {
		return this.shUser;
	}

	public void setShUser(ShUser shUser) {
		this.shUser = shUser;
	}

	public Integer getOrduserid() {
		return this.orduserid;
	}

	public void setOrduserid(Integer orduserid) {
		this.orduserid = orduserid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractShOrderId))
			return false;
		AbstractShOrderId castOther = (AbstractShOrderId) other;

		return ((this.getShUser() == castOther.getShUser()) || (this
				.getShUser() != null && castOther.getShUser() != null && this
				.getShUser().equals(castOther.getShUser())))
				&& ((this.getOrduserid() == castOther.getOrduserid()) || (this
						.getOrduserid() != null
						&& castOther.getOrduserid() != null && this
						.getOrduserid().equals(castOther.getOrduserid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getShUser() == null ? 0 : this.getShUser().hashCode());
		result = 37 * result
				+ (getOrduserid() == null ? 0 : this.getOrduserid().hashCode());
		return result;
	}

}